# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-socid-extractor
_pkgname=socid-extractor
pkgver=0.0.27
_pyver=3.13
pkgrel=1
pkgdesc="Extract accounts' identifiers from personal pages on various platforms."
arch=('any')
url='https://pypi.org/project/socid-extractor/#files'
license=('GPL3')
depends=('python' 'python-beautifulsoup4' 'python-dateutil' 'python-requests')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('8cc3abd272e895aa1957d0894f492b33821a92f856efb5defd61e8679c7d58370f6d9435f162269c04b0a13c1ed9b8dd85cf1141bf77cea12e58bbcca5df28f3')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build

  rm -rf "$pkgdir/usr/lib/python$_pyver/site-packages/tests/"
}

